<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>sna.digraph.Paths</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >iasna</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;sna ::
        Package&nbsp;digraph ::
        Module&nbsp;Paths
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="sna.digraph.Paths-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module Paths</h1><p class="nomargin-top"><span class="codelink"><a href="sna.digraph.Paths-pysrc.html">source&nbsp;code</a></span></p>
<p>Created on Dec 7, 2009</p>

<hr />
<div class="fields">      <dl><dt>Authors:</dt>
        <dd>
          Freymam Vallejo,
          Jorge Ortiz
        </dd>
      </dl>
</div><!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list.</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="sna.digraph.Paths-module.html#digraph_find_all_paths" class="summary-sig-name">digraph_find_all_paths</a>(<span class="summary-sig-arg">digraph</span>,
        <span class="summary-sig-arg">start</span>,
        <span class="summary-sig-arg">end</span>,
        <span class="summary-sig-arg">path</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span><br />
      Find all paths from start to end</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_find_all_paths">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list.</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="sna.digraph.Paths-module.html#digraph_find_all_semipaths" class="summary-sig-name">digraph_find_all_semipaths</a>(<span class="summary-sig-arg">digraph</span>,
        <span class="summary-sig-arg">start</span>,
        <span class="summary-sig-arg">end</span>,
        <span class="summary-sig-arg">path</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span><br />
      Find all semipaths and paths from start to end</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_find_all_semipaths">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">number.</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="sna.digraph.Paths-module.html#digraph_path_length" class="summary-sig-name">digraph_path_length</a>(<span class="summary-sig-arg">digraph</span>,
        <span class="summary-sig-arg">ni</span>,
        <span class="summary-sig-arg">nj</span>)</span><br />
      It computes length of the shortest path between two nodes.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_path_length">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">number.</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="sna.digraph.Paths-module.html#digraph_path_distance" class="summary-sig-name">digraph_path_distance</a>(<span class="summary-sig-arg">digraph</span>,
        <span class="summary-sig-arg">path</span>)</span><br />
      It computes length of a path.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_path_distance">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">number.</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="sna.digraph.Paths-module.html#digraph_shortest_path_distance" class="summary-sig-name">digraph_shortest_path_distance</a>(<span class="summary-sig-arg">digraph</span>,
        <span class="summary-sig-arg">ni</span>,
        <span class="summary-sig-arg">nj</span>)</span><br />
      It computes length of the shortest path between two nodes.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_shortest_path_distance">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list.</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="sna.digraph.Paths-module.html#influence_domain" class="summary-sig-name">influence_domain</a>(<span class="summary-sig-arg">digraph</span>,
        <span class="summary-sig-arg">ni</span>)</span><br />
      It finds of influence domain, that is finds all nodes have any path 
      to ni node.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="sna.digraph.Paths-pysrc.html#influence_domain">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'sna.digraph'"><code class="variable-quote">'</code><code class="variable-string">sna.digraph</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="digraph_find_all_paths"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">digraph_find_all_paths</span>(<span class="sig-arg">digraph</span>,
        <span class="sig-arg">start</span>,
        <span class="sig-arg">end</span>,
        <span class="sig-arg">path</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_find_all_paths">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Find all paths from start to end</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>graph</code></strong> (digraph.) - DiGraph.</li>
        <li><strong class="pname"><code>start</code></strong> (node) - initial node on the path</li>
        <li><strong class="pname"><code>end</code></strong> (node) - finish node on the path</li>
        <li><strong class="pname"><code>path</code></strong> (list) - used in the internal process.</li>
    </ul></dd>
    <dt>Returns: list.</dt>
        <dd>list with all paths from start to end. A path is a node sequence.</dd>
  </dl>
</td></tr></table>
</div>
<a name="digraph_find_all_semipaths"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">digraph_find_all_semipaths</span>(<span class="sig-arg">digraph</span>,
        <span class="sig-arg">start</span>,
        <span class="sig-arg">end</span>,
        <span class="sig-arg">path</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_find_all_semipaths">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Find all semipaths and paths from start to end</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>graph</code></strong> (digraph.) - DiGraph.</li>
        <li><strong class="pname"><code>start</code></strong> (node) - initial node on the path</li>
        <li><strong class="pname"><code>end</code></strong> (node) - finish node on the path</li>
        <li><strong class="pname"><code>path</code></strong> (list)</li>
    </ul></dd>
    <dt>Returns: list.</dt>
        <dd>list with all semipaths and paths from start to end. A path is a 
          node sequence.</dd>
  </dl>
</td></tr></table>
</div>
<a name="digraph_path_length"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">digraph_path_length</span>(<span class="sig-arg">digraph</span>,
        <span class="sig-arg">ni</span>,
        <span class="sig-arg">nj</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_path_length">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>It computes length of the shortest path between two nodes.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>graph</code></strong> (digraph.) - DiGraph.</li>
        <li><strong class="pname"><code>ni</code></strong> (start node) - initial node on the path</li>
        <li><strong class="pname"><code>nj</code></strong> (node) - finish node on the path</li>
    </ul></dd>
    <dt>Returns: number.</dt>
        <dd>legth of the shortest path.</dd>
  </dl>
</td></tr></table>
</div>
<a name="digraph_path_distance"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">digraph_path_distance</span>(<span class="sig-arg">digraph</span>,
        <span class="sig-arg">path</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_path_distance">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>It computes length of a path.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>graph</code></strong> (digraph.) - DiGraph.</li>
        <li><strong class="pname"><code>path</code></strong> (list.) - Path formed by sequence of nodes.</li>
    </ul></dd>
    <dt>Returns: number.</dt>
        <dd>legth of a path.</dd>
  </dl>
</td></tr></table>
</div>
<a name="digraph_shortest_path_distance"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">digraph_shortest_path_distance</span>(<span class="sig-arg">digraph</span>,
        <span class="sig-arg">ni</span>,
        <span class="sig-arg">nj</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sna.digraph.Paths-pysrc.html#digraph_shortest_path_distance">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>It computes length of the shortest path between two nodes.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>graph</code></strong> (digraph.) - DiGraph.</li>
        <li><strong class="pname"><code>ni</code></strong> (start node) - initial node on the path</li>
        <li><strong class="pname"><code>nj</code></strong> (node) - finish node on the path</li>
    </ul></dd>
    <dt>Returns: number.</dt>
        <dd>legth of the shortest path.</dd>
  </dl>
</td></tr></table>
</div>
<a name="influence_domain"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">influence_domain</span>(<span class="sig-arg">digraph</span>,
        <span class="sig-arg">ni</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sna.digraph.Paths-pysrc.html#influence_domain">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>It finds of influence domain, that is finds all nodes have any path to
  ni node.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>graph</code></strong> (digraph.) - DiGraph.</li>
        <li><strong class="pname"><code>ni</code></strong> (node.) - Node.</li>
    </ul></dd>
    <dt>Returns: list.</dt>
        <dd>list of nodes have any path to ni node.</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >iasna</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Mar 04 12:35:35 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
